package com.wxzz.elearing.course.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.wxzz.elearing.course.dto.CurriculumCategoryDto;
import com.wxzz.elearing.course.entity.CurriculumCategory;
import com.wxzz.elearning.common.vo.JgPageVo;
import com.wxzz.elearning.common.vo.PageVO;
import com.wxzz.elearning.common.vo.ReturnVO;

import java.util.List;

/**
 * <p>
 * 课程分类 服务类
 * </p>
 *
 * @author
 * @since 2021-03-10
 */
public interface ICurriculumCategoryService extends IService<CurriculumCategory> {

    /**
     * 后台查询课程分类(后台)
     *
     * @param enterpriseId
     * @param curriculumCategoryDto
     * @return
     */
    ReturnVO<JgPageVo<List<CurriculumCategory>>> listCurriculumCategory(Long enterpriseId, CurriculumCategoryDto curriculumCategoryDto);

    /**
     * 列出课程分类搜索(后台)
     *
     * @param enterpriseId
     * @return
     */
    ReturnVO<List<CurriculumCategory>> listCurriculumCategory(Long enterpriseId);

    /**
     * 新增分类
     *
     * @param curriculumCategory
     * @return
     */
    ReturnVO saveCurriculumCategory(CurriculumCategory curriculumCategory);

    /**
     * 修改分类
     *
     * @param curriculumCategory
     * @return
     */
    ReturnVO updateCurriculumCategory(CurriculumCategory curriculumCategory);

    /**
     * 删除课程分类
     * @param curriculumCategoryId
     * @return
     */
    ReturnVO deleteCurriculumCategory(Long curriculumCategoryId);
}
